package main

import (
	"fmt"
	"math/rand"
	"time"
)

func getRand(min, max int) int {
	return rand.Intn(max-min+1) + min
}

func main() {
	rand.Seed(time.Now().UnixNano()) // 初始化随机数种子
	n := getRand(4, 27)
	a := make([]byte, n)

	for i := 0; i < n; i++ {
		a[i] = byte(getRand(97, 122)) // 生成随机字符
	}

	for i := len(a) - 1; i >= 0; i-- {
		fmt.Printf("%c", a[i]) // 反向输出字符
	}
}
